StvDEV

 Components

  Handlers

  Localization

  Scenarios

  Threads

  Dispatcher

  AwakeSingletone()

  Invoke(Action)

  InvokeRequired

  UI

  Trigger

 Drawing

 Extensions

 Inspector

 Patterns

 TextMeshPro

 Types

 Vibration

class Dispatcher

Component for control & communicate with Unity main thread.
AttributesAddComponentMenu("StvDEV/Threads/Dispatcher"), HelpURL("https://docs.stvdev.pro/StvDEV/Components/Threads/Dispatcher/index.html"), DefaultExecutionOrder(-16000)
VisibilityPublic
ExtendsMonoBehaviourSingleton

Public static methods

void Invoke(Action action)Send action to main unity thread.

Protected methods

void AwakeSingletone()

Public static properties

bool InvokeRequired Returns whether the current execution thread is the main unity execution thread.